//
//  ChooseCityCase.h
//  定制公交
//
//  Created by thinkjoy on 16/4/13.
//  Copyright © 2016年 thinkjoy. All rights reserved.
//  选择城市列表

#import <UIKit/UIKit.h>

@class ChooseCityCase;

@protocol ChooseCityCaseDelegate;


@interface ChooseCityCase : UIView<UIPickerViewDelegate,UIPickerViewDataSource>

- (id)initWithProvinceRow:(NSInteger)provinceRow withCityRow:(NSInteger)cityRow;

//- (id)initWithFrame:(CGRect)frame;

@property   (nonatomic,assign) id<ChooseCityCaseDelegate>delegate;

/**
 *  block回调,返回一个字典
     @"ProvinceRow":@(self.provinceRow),    省份行
     @"Province":self.provinceStr,          省份名字
     @"CityRow":@(self.cityRow),            城市行
     @"City":self.cityStr};                 城市名字
 */
@property   (nonatomic,copy)    void(^chooseCityViewBlock)(NSDictionary * infoDic);


@end


@protocol ChooseCityCaseDelegate <NSObject>


- (void)get:(ChooseCityCase *)chooseCityCase ProvinceRow:(NSInteger)provinceRow Province:(NSString *)province CityRow:(NSInteger)cityRow City:(NSString *)city;

@end